/**
 * 
 */
package com.sci.web.action.datareportseason;

import javax.annotation.Resource;

import com.sci.web.action.util.BaseAction;
import com.sci.web.dao.DataReportM_RewardDao;

/**
 * @author  BaiFuyou
 * @date: Nov 5, 2011 4:45:22 PM
 * 获取用户的企业具有的奖励数据
 */
public class GetAllEnterprise_RewardByIdAction extends BaseAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5262997103146321804L;
	private int uid;
	@Resource
	private DataReportM_RewardDao dataReportM_RewardDao;
	/**
	 * @return the uid
	 */
	public int getUid() {
		return uid;
	}
	/**
	 * @param uid the uid to set
	 */
	public void setUid(int uid) {
		this.uid = uid;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		super.setContentType(super.JSON);
		super.outPrint(super.getJSONArrayString(dataReportM_RewardDao.getAllEnterpriseRewardByUid(uid)));
		return "json";
	}
}
